<template>
  <div class="rank-header">
    <router-link to="/home" class="logo">
      <img src="@/assets/images/logo2.png" alt="" />
    </router-link>
    <router-link to="/search">
      <van-search class="search" shape="round" placeholder="搜索" />
    </router-link>
    <router-link to="/login">
      <van-button
        round
        type="default"
        size="small"
        color="#f66847"
        plain
        class="code"
        >登录
      </van-button>
    </router-link>
  </div>
</template>

<script setup lang="ts"></script>

<style scoped lang="less">
// 头部
.rank-header {
  display: flex;
  width: 100%;
  height: 50px;
  align-items: center;
  padding: 15px 15px 5px 15px;
  top: 0;
  left: 0;
  .logo {
    width: 70px;
    height: 15px;
    img {
      width: 70px;
      height: 15px;
    }
    margin-right: 5px;
    margin-top: -10px;
  }
  .search {
    width: 200px;
    height: 30px;
    font-size: 12px;
  }
  .code {
    width: 68px;
    height: 30px;
    text-align: center;
    margin-left: 6px;
  }
}
</style>
